using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace MContracts.ViewModel
{
    public static class CollectionExtensions
    {
        public static void ParallelApply<T>(this IEnumerable<T> source, Action<T> action)
        {
            Parallel.ForEach(source, action);
        }
    }
}